package com.china08.yxyapi.entity.mg.continuedu;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 继续教育 用户-任务-课程-课时学习
 * 
 */
@SuppressWarnings("serial")
@Document(collection = "yxy.tea.continuedu.user.task.lesson.item")
public class YxyContinueduUserTaskLessonItem extends MongoBaseEntityNoId {

    @Id
    private String id;// id,使用 userId_taskId_lessonId_lessonItemId 拼接组成,唯一

    @Field(value = "user_id")
    private String userId;
    @Field(value = "task_id")
    private String taskId;
    @Field(value = "lesson_id")
    private String lessonId;
    @Field(value = "lesson_item_id")
    private String lessonItemId;

    /** 排列序号 */
    @Field(value = "order_num")
    private Integer orderNum;// 当前观看到的时间点

    @Field(value = "current_view")
    private Long currentView;// 当前观看到的时间点

    @Field(value = "status")
    private Integer status = 0;// 0-未学习, 1-已学习

    @Field(value = "title")
    private String title;

    @Field(value = "video_id")
    private String videoId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getLessonId() {
        return lessonId;
    }

    public void setLessonId(String lessonId) {
        this.lessonId = lessonId;
    }

    public String getLessonItemId() {
        return lessonItemId;
    }

    public void setLessonItemId(String lessonItemId) {
        this.lessonItemId = lessonItemId;
    }

    public Long getCurrentView() {
        return currentView;
    }

    public void setCurrentView(Long currentView) {
        this.currentView = currentView;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

}
